/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.menosehmais.dto;

import br.com.menosehmais.framework.persistence.DomainObjectDTO;
import br.com.menosehmais.framework.persistence.Id;
import br.com.menosehmais.model.PortletDO;

/**
 *
 * @author Junior JAFJ
 */
public class PortletDescriptionDTO extends DomainObjectDTO<PortletDO> {
    private Id idPortlet;
    private String urlImg;
    private String urlLink;
    private Long views;
    private Long clicks;
    private OpinionDTO opinion;
    private Boolean marked;
    private Boolean rejected;
    private Boolean iLike;

    //private Boolean discount;

    public PortletDescriptionDTO() {
        super(new PortletDO());
    }

    public Long getClicks() {
        return clicks;
    }

    public void setClicks(Long clicks) {
        this.clicks = clicks;
    }

    public Long getViews() {
        return views;
    }

    public void setViews(Long views) {
        this.views = views;
    }

//    public Boolean getDiscount() {
//        return discount;
//    }
//
//    public void setDiscount(Boolean discount) {
//        this.discount = discount;
//    }

    public Boolean getiLike() {
        return iLike;
    }

    public void setiLike(Boolean iLike) {
        this.iLike = iLike;
    }

    public Id getIdPortlet() {
        return idPortlet;
    }

    public void setIdPortlet(Id idPortlet) {
        this.idPortlet = idPortlet;
    }

    public OpinionDTO getOpinion() {
        return opinion;
    }

    public void setOpinion(OpinionDTO opinion) {
        this.opinion = opinion;
    }

    public Boolean getMarked() {
        return marked;
    }

    public void setMarked(Boolean marked) {
        this.marked = marked;
    }

    public Boolean getRejected() {
        return rejected;
    }

    public void setRejected(Boolean rejected) {
        this.rejected = rejected;
    }

    public String getUrlImg() {
        return urlImg;
    }

    public void setUrlImg(String urlImg) {
        this.urlImg = urlImg;
    }

    public String getUrlLink() {
        return urlLink;
    }

    public void setUrlLink(String urlLink) {
        this.urlLink = urlLink;
    }

    @Override
    public PortletDO toDomainObject() {
        PortletDO portletDO = this.domainObjectInstance();
        portletDO.setId(idPortlet.toString());
        portletDO.setUrlImg(urlImg);
        portletDO.setUrlLink(urlLink);
        
        return portletDO;
    }

}
